package io.renren.modules.sp.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.common.dao.BaseDao;
import io.renren.modules.sp.dto.SpUserDTO;
import io.renren.modules.sp.entity.SpUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;
import java.util.Map;

/**
* 用户
*
* @author whc 15953295779@126.com
* @since 3.0 2023-04-21
*/
@Mapper
public interface SpUserDao extends BaseDao<SpUserEntity> {
    IPage<SpUserEntity> selectPageVo(Page page, @Param(Constants.WRAPPER) QueryWrapper<SpUserDTO>  wrapper);

    List<Map<String,Object>> queryList(Long teamId, Integer type);

    Map<String,Object> queryUserById(Long userId);


}